<?php
/**
*	Search and call of Controller class 
*
*	@author Renan Henrique Abreu <renanhabreu@gmail.com>
*	@date 20-07-2009
*	@version 2.0
* 	@final
*	@package Nucleo
* 	@subpackage Nucleo.Load
*   @copyright 2009 Renan Abreu
*/
final class Nucleo_Load_Controller implements Nucleo_Load_Interface{
	
	private function __construct(){}
	
	
	static public function findClass($controller){
		$controller = str_replace('_','/',$controller);
		
		$file = MODULE_PATH
			  . Nucleo_Controller_Factory::$modulo
			  .'/Controller/'
			  .$controller.'.php';
		
        if(file_exists($file))
            require($file);
        else
            return false;
        
        return true;
	}
}
?>